<script>
	import routingIntercept from '@/utils/permission.js'
	export default {
		onLaunch: function() {
			routingIntercept() 
			
			this.$store.dispatch('setting/reloadSysSetting')
			this.$store.dispatch('syspackage/getTopPackage')
			this.$store.dispatch('brand/getBrand')
			this.$store.dispatch('area/reloadArea')
			this.$store.dispatch('user/initUserData')
			this.$store.dispatch('socket/openSocket') 
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "colorui/main.css";
	@import '@/static/style.scss';
	
	body {
		background-color: #F8F8F8;
	}
</style>